<template>
  <span>父级传来的值： {{ title }}</span>
</template>

<script>
import { toRefs } from "vue";
export default {
  inheritAttrs: false,
  props: {
    title: String,
  },
  setup(props, { attrs, slots, emit }) {
    // const { title } = props;
    const { title } = toRefs(props);

    console.log(props, attrs, slots, emit, "props, context");
    return {
      title,
    };
  },
};
</script>

<style>
</style>